Skip to content

A stuck mode repair holds only its own pull request in a multi-repository run - #981

Merged
coderhelm[bot] merged 4 commits into
mainfrom
multi-repo-ci-review-fixes
Dec 5, 2026
Merged

coderhelm[bot] merged 4 commits into
mainfrom
multi-repo-ci-review-fixes

Conversation

@nambok

@nambok nambok commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #980, which merged before its review fixes were pushed. CoderHelm's review asked for three changes; this pull request makes them on current main.

Changes

  • A stuck mode repair holds only its own pull request. The multi-repository loop ended its step whenever the mode diagnosis returned anything, and the stuck record was one per run, so a repair retried or stopped on one pull request kept every other pull request of the run from its rounds. The diagnosis is now read_modes, shared with the single repository loop's mode_cause (which keeps its behavior). In the multi-repository loop the stuck record lives on that pull request's ledger entry (RepoCi::keep_mode). A restore commit or a retry marks only that pull request as waiting for its next look, and a repair that stopped making progress settles it as CoderHelm's own stop (RepoCi::stop). The step goes on to the other pull requests.
  • No second round runner. run_repo_round is gone: resume_multi_repo picks the round (a parked one first, else the ledger's next red pull request) and runs it through run_fix_round directly, keeping what it came to on the ledger.
  • One replay helper in the incident. The two-repository scenarios share two(order, api, web).
  • The xt guard drops its exception for the sentence that left red CI open, since nothing says it any more.
  • New case: a_stuck_mode_repair_holds_only_its_own_pull_request. The xq source checks read read_modes beside mode_cause.

Verification

  • cargo fmt --all --check, rustfmt --check on incidents: clean.
  • cargo clippy -p common -p worker -p gateway --all-targets -- -D warnings: clean.
  • cargo test -p common -p worker -p gateway, the full suite: all pass.
  • brand_spelling.py, domain_examples.py: pass.

The multi-repository CI loop ended its step whenever the mode diagnosis
came back with anything, and the stuck record was one per run. A repair
that was retried or stopped on one pull request kept every other pull
request of the run from its rounds. The diagnosis is now read_modes,
shared with the single repository loop's mode_cause: its stuck record is
kept on that pull request's ledger entry (keep_mode), a restore commit or
a retry marks only that pull request as waiting for its next look, and a
repair that stopped making progress settles it as CoderHelm's own stop
(RepoCi::stop). The step goes on to the others.

The round itself runs through run_fix_round from resume_multi_repo, with
no second runner beside it, and the incident's two-repository replays
share one helper.

The guard in xt_contract_change_reaches_every_consumer loses its
exception for the sentence that left red CI open: nothing says it now.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 5, 2026
coderhelm[bot]

This comment was marked as outdated.

The context a CI round on one pull request works with was built after
the run was claimed and the round counted, so a failure there (the
team's model settings or GitHub not answering) left the run running
with a round spent that never ran. It is now built first, through
context_or_retry, on every path that builds one: a failure leaves the
run waiting and the ledger as it was, and a resume tries the same step
again shortly.
coderhelm[bot]

This comment was marked as outdated.

@coderhelm
coderhelm Bot dismissed their stale review December 5, 2026 12:31

Superseded by CoderHelm's latest review

@coderhelm

coderhelm Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Post-merge health check: deploy cancelled: the deploy for ba5133a was cancelled; nothing later deployed it.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved with notes 070c722 (merged)

@coderhelm
coderhelm Bot merged commit ba5133a into main Dec 5, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant